﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 报警记录日志, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_WARNINGLOGS_Metadata))]
    public partial class HRDS_WARNINGLOGS
    {
        /// <summary>
        /// 创建<see cref="HRDS_WARNINGLOGS"/>的实例
        /// </summary>
        public HRDS_WARNINGLOGS()
        {
        }
        /// <summary>
        /// LOGGUID
        /// </summary>
        public virtual string LOGGUID { get; set; }

        		
        /// <summary>
        /// WARNTYPE
        /// </summary>
        public virtual decimal WARNTYPE { get; set; }

    		
        /// <summary>
        /// WARNCONTENT
        /// </summary>
        public virtual string WARNCONTENT { get; set; }

    		
        /// <summary>
        /// WARNDATE
        /// </summary>
        public virtual DateTime WARNDATE { get; set; }

    		
        /// <summary>
        /// HANDLERESULT
        /// </summary>
        public virtual decimal HANDLERESULT { get; set; }

    		
        /// <summary>
        /// STATIONID
        /// </summary>
        public virtual string STATIONID { get; set; }

    		
        /// <summary>
        /// STATIONNAME
        /// </summary>
        public virtual string STATIONNAME { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_WARNINGLOGS model = obj as HRDS_WARNINGLOGS;
            return model != null && (ReferenceEquals(LOGGUID,null) ? ReferenceEquals(model.LOGGUID, null) : LOGGUID.Equals(model.LOGGUID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(LOGGUID, null) ? 0 : LOGGUID.GetHashCode());
            return hash;
        }
    }
}
